home *** CD-ROM | disk | FTP | other *** search
- #include "../CGVPMacro.csi"
-
- MainInput { uniform sampler2D baseMap : texunit0,
- uniform float4 Ambient }
- DeclarationsScript
- {
- OUT_T0_C0
- FOUT
- }
- CoreScript
- {
- // load the decal
- float4 decalColor = tex2D(baseMap, IN.Tex0.xy);
- OUT.Color.xyz = Ambient * decalColor;
- OUT.Color.w = IN.Color.w;
- }
-
-